class LDValue<T>{
	T element;
	LDValue<T> next;
}

class ListDefinition2<T> {

	LDValue<T> node;
	
	public ListDefinition2(){
		node=null;
	}
	
	T get(int ind){
		LDValue<T> a = null,b = null;
		for (int i = 0;i<ind;i++){
			a=node.next;
			b=a.next;
		}
		T val;
		val=(T) a.element;
		return val;
	}

	void insert(T val, int ind){
		LDValue<T> a = null,b = null;
		if (ind==1){
			
		}
		else{
			for (int i = 1;i<ind;i++){
				a=node.next;
				b=a.next;
			}
		LDValue<T> c = null;
		c.element=val;
		c.next=a.next;
		a.next=c;
		}
	}	
	
}

public class MakeList2 {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub

		ListDefinition2<Integer> a = new ListDefinition2<Integer>();	
		
		a.insert(0,0);
		
	}

}
